﻿using DroidClaim.BL.Utility;
using DroidClaim.Service.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DroidClaimBL.Dto
{
    public class CustomerBlDto
    {
        public string LicensePlate { get; set; }
        public string Name { get; set; }
        public string Surname { get; set; }
        public string Mobile { get; set; }
        public string CustImg { get; set; }
        public string CarModel { get; set; }
        public string Email { get; set; }
        public string CarImg { get; set; }
        public string CarColor { get; set; }
        public string CarBrand { get; set; }
        public string InsurancePackage { get; set; }

        public CustomerBlDto() { }
        public CustomerBlDto(CustomerDto svDataDto)
        {
            LicensePlate = svDataDto.LicensePlate;
            Name = svDataDto.Name;
            Surname = svDataDto.Surname;
            Mobile = svDataDto.Mobile;
            CustImg = ServerFileHandle.GetImageString(svDataDto.CustImgPath);
            CarModel = svDataDto.CarModel;
            Email = svDataDto.Email;
            CarImg = ServerFileHandle.GetImageString(svDataDto.CarImgPath);
            CarColor = "";
            CarBrand = svDataDto.CarBrand;
            InsurancePackage = svDataDto.InsurancePackage;
        }
    }
}